package com.layfuture.lftserver.order.internal;

import org.springframework.context.event.EventListener;
import org.springframework.modulith.moments.HourHasPassed;
import org.springframework.stereotype.Service;

@Service
public class SomethingOrderInternal {

    @EventListener
    public void onDayHasPassed(HourHasPassed event) {
        System.out.println(event);
        // Do something when a day has passed
    }
}
